﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace fetco.entities
{
    public class WebPortal
    {
        #region Parameter
        private int? _web_id;
        private string _web_name;
        private string _web_link;
        private string _web_key;
        private int? _web_published;
        private int? _web_status;
        private int? _web_ordering;
        #endregion

        #region Contructor
        public WebPortal() { }
        public WebPortal(
            string web_name,
            string web_link,
            string web_key,
            int web_ordering
            )
        {
            this._web_id = 0;
            this._web_name = web_name;
            this._web_link = web_link;
            this._web_key = web_key;
            this._web_published = 1;
            this._web_status = 1;
            this._web_ordering = web_ordering;
        }
        #endregion

        #region Properties
        public static string TableName
        {
            get { return "webportal"; }
        }

        public int? WebId
        {
            get { return this._web_id; }
            set { this._web_id = value; }
        }

        public string WebName
        {
            get { return this._web_name; }
            set { this._web_name = value; }
        }

        public string WebLink
        {
            get { return this._web_link; }
            set { this._web_link = value; }
        }

        public string WebKey
        {
            get { return this._web_key; }
            set { this._web_key = value; }
        }

        public int? WebPublished
        {
            get { return this._web_published; }
            set { this._web_published = value; }
        }

        public int? WebStatus
        {
            get { return this._web_status; }
            set { this._web_status = value; }
        }

        public int? WebOrdering
        {
            get { return this._web_ordering; }
            set { this._web_ordering = value; }
        }

        #endregion
    }

    public class ListWebPortal : List<WebPortal> { }

    public enum WebPortalField
    {
        WebId,
        WebName,
        WebLink,
        WebKey,
        WebPublished,
        WebStatus,
        WebOrdering
    }

}
